package com.kdd.campus.sh.service.impl;

import com.kdd.campus.sh.dao.FeedbackMapper;
import com.kdd.campus.sh.po.ShFeedback;
import com.kdd.campus.sh.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Auther: fcp
 * @Date: 2020/5/14 21:14
 * @Description:
 */
@Service
public class FeedbackServiceImpl implements FeedbackService {
    @Autowired
    private FeedbackMapper feedbackMapper;

    @Override
    public void add(ShFeedback feedback) {
        feedback.setCreated(new Date());
        feedback.setStatus(0);
        feedbackMapper.insert(feedback);
    }
}
